package com.github.blanexie.nexusj.torrent.infra.repository

import org.ktorm.schema.*


object PeerDO : Table<Nothing>("peer") {
    var id = int("id").primaryKey()
    var infoHash = varchar("info_hash")
    var peerId = varchar("peer_id")
    var port = int("port")
    var uploaded = long("uploaded")
    var downloaded = long("downloaded")
    var left = long("left")
    var compact = int("compact")
    var event = varchar("event")
    var ip = varchar("ip")
    var ipv6 = varchar("ipv6")
    var numwant = int("numwant")
    var trackerid = varchar("trackerid")
    var authKey = varchar("auth_key")
    var userId = int("user_id")

    var createTime = datetime("create_time")
    var updateTime = datetime("update_time")
    var status = int("status")
}